const { currentConfig } = require('./config_test');

console.log('=== 配置验证 ===');
console.log('当前环境:', currentConfig.environment);
console.log('');

console.log('云翼信配置:');
console.log('- SIID:', currentConfig.yunyx.siid || '未配置');
console.log('- USER:', currentConfig.yunyx.user || '未配置');
console.log('- SECRET_KEY:', currentConfig.yunyx.secretKey ? '已配置' : '未配置');
console.log('- API_URL:', currentConfig.yunyx.apiUrl);
console.log('- 签名:', currentConfig.yunyx.signature);
console.log('');

if (process.env.NODE_ENV === 'production') {
    console.log('生产环境环境变量检查:');
    console.log('- NODE_ENV:', process.env.NODE_ENV);
    console.log('- YUNYX_SIID:', process.env.YUNYX_SIID || '未设置');
    console.log('- YUNYX_USER:', process.env.YUNYX_USER || '未设置');
    console.log('- YUNYX_SECRET_KEY:', process.env.YUNYX_SECRET_KEY ? '已设置' : '未设置');
} else {
    console.log('测试环境 - 使用配置文件中的参数');
} 